<?php
//+-----------------------------------------------------------
//| 人生是荒芜的旅行，冷暖自知，苦乐在心
//+-----------------------------------------------------------
//| Author:Janmas <janmas@126.com>
//+-----------------------------------------------------------
//| 
//+-----------------------------------------------------------


namespace app\plugins\goods\admin\controller;


/**
 * Class Cates
 * @package app\plugins\goods\admin\controller
 * @property \app\plugins\goods\admin\service\Cates $service
 */
class Cates extends \app\plugins\Controller
{
    public function getSelectTree(){
        return $this->service->getSelectTree();
    }


    public function create(){
        if($this->request->isPost()){
            return $this->service->create();
        }
        $html = $this->service->getHtml();
        //如果设置了html的参数就渲染公共的create页面
        $this->assign(['html'=>$html]);

        return $this->fetch();
    }
}